package com.example.dairenkun.neufoodshop.service;


import com.example.dairenkun.neufoodshop.bean.EditUser;
import com.example.dairenkun.neufoodshop.bean.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;



/**
 * Created by Administrator on 2017/4/10.
 */

public interface UserService {
    //显示个人信息
    @GET("getUserById.do")
    Call<User> getUserInfo(
            @Query("user_id")int userid

    );

    //修改个人信息
   @GET("updateUserById.do")
    Call<EditUser> updateUserInfo(
            @Query("user_id") int userid,
            @Query("username") String username,
            @Query("userpass") String pass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address
    );
}
